aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice/[id]/tip
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-08 13:37:53 -0800
committerAdam Soltys <[email protected]>2022-11-08 13:42:36 -0800
commitf1fc386ddf8afd5518e276d7cc59501a28002ebe (patch)
tree1969cab69a9000848c46cc5b36ef13ac235ed01d /src/routes/(app)/invoice/[id]/tip
parentcd151649b42fd16416c04eb3f4ff3e184d158531 (diff)
downloadcoinos-ui-f1fc386ddf8afd5518e276d7cc59501a28002ebe.tar.gz
coinos-ui-f1fc386ddf8afd5518e276d7cc59501a28002ebe.zip
qr styles
Diffstat (limited to 'src/routes/(app)/invoice/[id]/tip')
-rw-r--r--src/routes/(app)/invoice/[id]/tip/+page.svelte6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/routes/(app)/invoice/[id]/tip/+page.svelte b/src/routes/(app)/invoice/[id]/tip/+page.svelte
index 8f07fdb8..74c1639e 100644
--- a/src/routes/(app)/invoice/[id]/tip/+page.svelte
+++ b/src/routes/(app)/invoice/[id]/tip/+page.svelte
@@ -65,6 +65,7 @@
let { invoice, id, user } = data;
let {
amount,
+ network,
rate,
received,
prompt,
@@ -84,6 +85,7 @@
({ invoice, id } = data);
({
amount,
+ network,
rate,
received,
prompt,
@@ -97,7 +99,8 @@
$: tip = Math.round((amount / 100) * tipPercent);
- $invoices[id] = { amount, id, rate, received, text, tip, username };
+ $invoices[id] = { amount, id, network, rate, received, text, tip, username };
+
$: browser &&
$invoices[id]?.received >= $invoices[id]?.amount &&
goto(($invoices[id].memo === 'launch' && '/launch/purchase') || `/invoice/${id}/paid`);
@@ -120,6 +123,7 @@
<input type="hidden" name="username" value={username} />
<input type="hidden" name="rate" value={rate} />
<input type="hidden" name="prompt" value="false" />
+ <input type="hidden" name="network" value={network} />
<h1 class="text-4xl font-semibold my-8">{$t('invoice.addTipq')}</h1>
{#if !showCustomAmount}